package com.example.mall.domain.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class CategoryDTO {
    @NotBlank(message = "类别名称不能为空")
    @Size(min = 2, max = 50, message = "类别名称长度必须在2-50个字符之间")
    private String categoryName;
} 